<?php

	$rh->UseClass("Model_ModelManager");
	$mm = new ModelManager( $rh, $db, $store );
	
	$aa = $mm->getModel("AclAssistantPlatonica");
		
	$rh->useClass("RSSAggregator_RssDownload");
	$rh->useClass("RSSAggregator_RssLibWrapper");
	$rh->useClass("RSSAggregator_RssTmpStore");
	$rh->useClass("RSSAggregator_RssQueueManager");
	$rh->useClass("RSSAggregator_RssPublisher");
	$rh->useClass("RSSAggregator_RssItem");
	$rh->useClass("RSSAggregator_Treatment");
	
	$dlq = $mm->getModel("RssDLQueue");
	$rfl = $mm->getModel("RssFeedList");
	$mi = $mm->getModel("Item");
	$rss_fs = $mm->getModel("RssFeedSnapshots");
				
	$dlm = new RssQueueManager($dlq, $rfl);
		
	$dlm->manageQueue();
		
	$lib_rss = new RssLibWrapper();
	$ts = new RssTmpStore($dlq, $lib_rss);
	$ts->getAll();
		
	
	$treat = new Treatment($mi, $aa, $rfl, $rh);
	$pub = new RssPublisher($ts, $rss_fs, $treat);
	$pub->publish();
